package com.edmendst.xmall.service;

import com.edmendst.xmall.dto.ReviewInfo;
import com.edmendst.xmall.dto.ReviewReplyInfo;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ReviewService {
    // 添加评论
    String addReview(ReviewInfo reviewInfo,String userName, List<MultipartFile> reviewImages) throws JsonProcessingException;
//    获取评论列表
    List<ReviewInfo> getReviewList(Integer productId);
//    评论点赞
    int reviewLike(Integer reviewId, String userName);
//    评论回复
    String reviewReply(ReviewReplyInfo reviewReplyInfo,  String userName);

}
